#include<bits/stdc++.h>
using namespace std;
#define int long long
signed main() {
	string s, t;
	getline(cin, s);
	t = s;
	reverse(t.begin(), t.end());
	cout << s + t;
	return 0;
}
